package com.itcaius.weblog.admin.convert;

import com.itcaius.weblog.admin.model.vo.article.FindArticleDetailRspVO;
import com.itcaius.weblog.common.domain.dos.ArticleDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author Caius
 * @description
 * @since Created in 2025-04-27
 */
@Mapper
public interface ArticleDetailConvert {
    /**
     * 初始化实例 ArticleDetailConvert
     */
    ArticleDetailConvert INSTANCE = Mappers.getMapper(ArticleDetailConvert.class);

    /**
     * 将 DO 转换为 VO
     * @param articleDO
     * @return
     */
    FindArticleDetailRspVO convertDO2VO(ArticleDO articleDO);
}
